__author__ = 'serg3d'

import unittest
from selenium import webdriver
from selenium.webdriver.common.keys import Keys

class MyTestCase(unittest.TestCase):

    def setUp(self):
        desired_capabilities = webdriver.DesiredCapabilities.FIREFOX
        desired_capabilities['version'] = 25
        desired_capabilities['platform'] = 'Windows 8.1'
        desired_capabilities['name'] = 'Testing Selenium 2 in Python at Sauce'

        self.driver = webdriver.Remote(desired_capabilities = desired_capabilities, command_executor='http://serg3d:80ff7f7a-0663-40bd-ac3c-49134eecf8f8@ondemand.saucelabs.com:80/wd/hub')
        self.driver.implicitly_wait(30)


    def test_sauce(self):
        self.driver.get('http://saucelabs.com/test/guinea-pig')
        self.assertTrue('I am a page title - Sauce Labs' in self.driver.title)
        co



if __name__ == '__main__':
    unittest.main()
